package com.guxiuwei.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * <p>
 *
 * </p>
 *
 * @author 谷秀伟
 * @since 2023-03-07
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Spareparts对象", description="")
public class Spareparts implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "备件序列号")
      @TableId(value = "sid", type = IdType.ID_WORKER)
    private String sid;

    @ApiModelProperty(value = "备件名称（生产厂商+类型+型号）")
    private String name;

    @ApiModelProperty(value = "申请人")
    private String applicant;

    @ApiModelProperty(value = "出/入库")
    private String category;

    @ApiModelProperty(value = "当前环节")
    private String status;

    @ApiModelProperty(value = "备件所在位置")
    private String location;

    @ApiModelProperty(value = "备件进出日期")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private Date date;

    @ApiModelProperty(value = "审批人姓名")
    private String uname;

    @ApiModelProperty(value = "审批人部门")
    private String department;

    @ApiModelProperty(value = "审批人联系方式")
    private String phone;

    @ApiModelProperty(value = "备注")
    private String remarks;


}
